﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Peninsula.Site.Data.Models
{
    public class Series
    {
        /// <summary>
        /// sereis序列组id
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 序列组名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 序列组图表类型
        /// </summary>
        public string type { get; set; }


        /// <summary>
        /// 图表的数据
        /// </summary>
        public List<Double> data { get; set; }
        /// <summary>
        /// 图表的颜色
        /// </summary>
        public object itemStyle { get; set; }

        public object markPoint { get; set; }
        public object markLine { get; set; }


    }

    public  class normal
    {
        /// <summary>
        /// color
        /// </summary>
        public string color { get; set; }
    }

    public  class itemStyle
    {
        public object normal { get; set; }
    }

    public class data
    {
        public string type { get; set; }
        public string name { get; set; }
    }

    public class markPoint
    {
        public List<data> data { get; set; }


    }

    public  class markLine
    {
        public List<data> data { get; set; }
    }

     public class Color
    {
        public string[] colorString = new string[] { "#C1232B", "#B5C334", "#FCCE10", "#E87C25", "#27727B", "#FE8463", "#9BCA63", "#FAD860", "#F3A43B", "#60C0DD" };
        public string this[int Index]
        {
            get
            {
                return colorString[Index];
            }

        }
    }

}
